package factory.method;

public class Product {
    private String serialNo;
    private String name;

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Product{" +
                "serialNo='" + serialNo + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
